<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort()
            + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>java论坛</title>
    <jsp:include page="foot2.jsp" />
    <link rel="stylesheet" href="<%=basePath%>css/base.css">
    <link rel="stylesheet" href="<%=basePath%>css/style.css">
    <script src="<%=basePath%>js/jquery-1.11.1.min.js"></script>
    <script src="<%=basePath%>js/jquery.SuperSlide.2.1.1.js"></script>
    <script src="<%=basePath%>js/Action.js"></script>
</head>

<body>
<div class="content">
    <div class="wrap">
        <div class="tsm-height"></div>
        <div class="course-banner"><img src="<%=basePath%>upload/zhuye.png"></div>
        <div class="cou-a"></div>
        <%--文章--%>
        <div>
            <div class="cou-b">
                <div class="cou-b-title">
                    <div class="cou-b1"><img src="<%=basePath%>images/cou-b1.jpg">我的文章</div>
                </div>
            </div>
            <div class="cou-c" style="margin-left: 8px">
                <ul>
                    <c:forEach items="${WZlist}" var="file">
                        <li style="width: 230px;height: 110px">
                            <div style="margin-left: 15px" class="kil-fr fl">
                                <div class="kil-r1">${file.type}</div>
                                <div class="kil-r2" style="font-size: 15px;">文章主题：${file.fname}</div>
                                <div class="kil-r4" style="height: 30px">
                                    <img width="15px" height="15px" src="<%=basePath%>upload/m1.png">${file.more2} 人阅读
                                    <a style="color: #959ca8;" href="<%=basePath%>shixun/searchOneFileOfMyself?fileid=${file.id}"><img src="<%=basePath%>upload/m2.png" >查看</a>
                                    <a style="color: #959ca8;" onclick="delFile('${file.id}')" href=""><img src="<%=basePath%>upload/m3.png" >删除</a>
                                </div>
                            </div>
                        </li>
                    </c:forEach>
                </ul>
            </div>
        </div>
        <br><br/>
        <div>
            <div class="cou-b">
                <div class="cou-b-title">
                    <div class="cou-b1"><img src="<%=basePath%>images/cou-b1.jpg">我的帖子</div>
                </div>
            </div>
            <div class="cou-c" style="margin-left: 8px">
                <ul>
                    <c:forEach items="${TZlist}" var="Tiezi">
                        <li style="width: 230px;height: 110px">
                            <div style="margin-left: 15px" class="kil-fr fl">
                                <div class="kil-r1">${Tiezi.type}</div>
                                <div class="kil-r2" style="font-size: 15px;">帖子主题：${Tiezi.fname}</div>
                                <div class="kil-r4" style="height: 30px">
                                    <img width="15px" height="15px" src="<%=basePath%>upload/m5.png">${Tiezi.fnumber} 人评论
                                    <a style="color: #959ca8;" href="<%=basePath%>TestSX/searchOneTieziMyself?tiziId=${Tiezi.id}"><img src="<%=basePath%>upload/m2.png" >查看</a>
                                    <a style="color: #959ca8;" onclick="delFile('${Tiezi.id}')" href=""><img src="<%=basePath%>upload/m3.png" >删除</a>
                                </div>
                            </div>
                        </li>
                    </c:forEach>
                </ul>
            </div>
        </div>
        <div class="act-e"></div>
    </div>
</div>
<jsp:include page="/foot/foot.jsp"/>

<!--登录注册弹窗-->
<div class="mask"></div>
<div class="login">
    <div class="login-title">
        <div class="login-a">登录</div>
        <div class="login-b"></div>
        <div class="login-c close">x</div>
    </div>
    <div class="login-btm">
        <div class="login-d"><input type="text" class="login-text" placeholder="注册时填写的邮箱"></div>
        <div class="login-d"><input type="password" class="login-pas" placeholder="密码"></div>
        <div class="login-d"><input type="button" class="login-btn" placeholder="登录"></div>
        <div class="login-f">
            <a href="">忘记密码</a>
            <span>还没有焦点账号?><a href="javascript:;" class="reg-href">点击注册</a></span>
        </div>
    </div>
</div>

<div class="reg">
    <div class="login-title">
        <div class="login-a">注册</div>
        <div class="login-b"></div>
        <div class="login-c close">x</div>
    </div>
    <div class="login-btm">
        <div class="login-d"><input type="text" class="login-text" placeholder="邮箱/手机号"></div>
        <div class="login-d"><input type="password" class="login-pas" placeholder="密码"></div>
        <div class="login-d"><input type="button" class="login-btn" placeholder="注册"></div>
        <div class="login-f">
            <a href="">忘记密码</a>
        </div>
    </div>
</div>


<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/Action.js"></script>
<script type="text/javascript">
    function delFile(aa) {
        if (confirm("你确定删除此贴子吗？")){
            window.location.href="/shixun/delteOneFile?fileid="+aa;
        }else {
            return false;
        }
    }
</script>

<script>
    $(".cou-a1").hover(function(){
        $(this).find(".cou-inside").stop(true,true).animate({top:0},500);
    },function(){
        $(this).find(".cou-inside").stop(true,true).animate({top:201},500);
    });
</script>
<script>
    $(".sort").click(function(){
        $(this).toggleClass("sort-cut")
    })
</script>
<script>
    $(".page a").click(function(){
        $(this).addClass("page-cut").siblings().removeClass("page-cut")

    })
</script>

<script>
    $(".dropdown").bind({
        click: function () {
            $(this).find(".droplist").stop().slideDown();
        },
        mouseleave: function () {
            $(this).find(".droplist").hide();
        }
    });
    $(".dropdown .droplist li").click(function () {
        $(this).parents(".dropdown").children("span").text($(this).text());
        $(this).parents(".droplist").hide().attr("data-value", $(this).attr("data-id"));
    });
</script>
</body>
</html>
